package model;

import java.util.ArrayList;
import java.util.prefs.Preferences;

public class MainModel {

	private static ArrayList<DocumentEA> EADocumentModel;
	private static ArrayList<EATreeNode> EATreeModel;
	private static ArrayList<SAPObject> EASAPObjects;
	static String currentEAFilePath;
	static String currentExcelImportFilePath;
	static String currentExcelOutputFilePath;

	public static ArrayList<DocumentEA> getEADocumentModel() {
		if (EADocumentModel == null) {
			EADocumentModel = new ArrayList<DocumentEA>();
		}
		return EADocumentModel;
	}

	public MainModel() {
		EADocumentModel = getEADocumentModel();
		EATreeModel = getEATreeModel();
	}

	public static ArrayList<EATreeNode> getEATreeModel() {
		if (EATreeModel == null) {
			EATreeModel = new ArrayList<EATreeNode>();
		}
		return EATreeModel;
	}

	public static ArrayList<SAPObject> getSAPObjectModel() {
		if (EASAPObjects == null) {
			EASAPObjects = new ArrayList<SAPObject>();

		}
		return EASAPObjects;
	}

}
